var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("1楼教室完成。", 57, 1530505, false, true)
        } else {
            if (status === a++) {
                qm.forceCompleteQuest(32830);
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("那就是这个世界的粉笔？真神奇！拿给我看看，给我！", 37, 1530030, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("……什么嘛？跟我们世界的没什么两样嘛？真让人失望。", 37, 1530030, true, true)
            } else {
                if (status === a++) {
                    qm.forceStartQuest(32810, "");
                    qm.forceCompleteQuest(32810);
                    qm.gainItem(4034151, -25);
                    qm.dispose()
                }
            }
        }
    }
};